function painting_all 
 
    global b d p g Rf OA         %%% 常数         
    global Bo II u ii            %%% 时间向量，方位角向量     
    global H W h Ds Dm Os Om     %%% 参数向量          
    global PointSet_three_Bo_u   %%% 三相线点集 
    global PointSet_down_Bo_u_O  %%% 气液面下部点集    
    global PointSet_up_Bo_u_O    %%% 气液面上部点集        
    %%% 特殊 全局变量
    global Point_r_three_Bo_u  Point_z_three_Bo_u  a_down_Bo_u      
        
  for N=1:II
     
        %抽出三相点坐标
        x=PointSet_three_Bo_u(N:N,1:ii);
        y=PointSet_three_Bo_u(N:N,ii+1:2*ii);
        z=PointSet_three_Bo_u(N,1+2*ii:3*ii);
        
        plot3(x,y,z,'bo','MarkerSize',6);hold on
        plot3(-x,-y,z,'bo','MarkerSize',6);
        plot3(-x,y,z,'bo','MarkerSize',6);
        plot3(x,-y,z,'bo','MarkerSize',6);
        
        xlabel('X');
        ylabel('Y');
        zlabel('Z');
        
        xlim([-2 2]);   %限制x,y,z轴
        ylim([-2 2]);
        zlim([-1.6 1]);
        
       
       for n=1:ii
         a=(n-1)*3*ii+1;
         b=a+ii;
         c=b+ii;
        %抽出up部分点坐标
        x3=PointSet_up_Bo_u_O(N:N,a:b-1);
        y3=PointSet_up_Bo_u_O(N:N,b:c-1);
        z3=PointSet_up_Bo_u_O(N:N,c:c+ii-1);
        
        plot3(x3,y3,z3,'bo','MarkerSize',6);
        plot3(-x3,-y3,z3,'bo','MarkerSize',6);
        plot3(-x3,y3,z3,'bo','MarkerSize',6);
        plot3(x3,-y3,z3,'bo','MarkerSize',6);
        %抽出down部分点坐标
        x2=PointSet_down_Bo_u_O(N:N,a:b-1);
        y2=PointSet_down_Bo_u_O(N:N,b:c-1);
        z2=PointSet_down_Bo_u_O(N:N,c:c+ii-1);
        
        plot3(x2,y2,z2,'bo','MarkerSize',6);
        plot3(-x2,-y2,z2,'bo','MarkerSize',6);
        plot3(-x2,y2,z2,'bo','MarkerSize',6);
        plot3(x2,-y2,z2,'bo','MarkerSize',6);
       end
        
        %画纤维
        [cylinder_x,cylinder_y,cylinder_z]=cylinder([0.5 0.5],50);
        mesh(cylinder_y,cylinder_z*4-2,cylinder_x+0.5,'FaceAlpha',0.1,'FaceColor','r');
        shading interp;
        
   daspect([1,1,1]); %x,y,z轴均匀
   view(130,10);     %视角
   grid on;          %网格
   
   hold off;
   pause(0.05);     %暂停时间
 end


end
